import { getRequest } from "@/utils/request";

let getRestaurant = (id)=>getRequest(`/shopping/restaurant/${id}`)   
// 获取商品详情页的数据列表
let getFoodList = (id)=>getRequest(`/shopping/v2/menu?restaurant_id=${id}`)

let getScores = (id)=>getRequest(`/ugc/v2/restaurants/${id}/ratings/scores`)

// 获取所有评论类型
let getTags = (id)=>getRequest(`/ugc/v2/restaurants/${id}/ratings/tags`);

// 获取评论列表
let getratings = (id,data)=>getRequest(`/ugc/v2/restaurants/${id}/ratings`,data);
export {
    getRestaurant,
    getFoodList,
    getScores,
    getTags,
    getratings
}